package com.company.fastsbapi.service;

import com.company.fastsbapi.dataobject.model.Person;
import com.company.fastsbapi.dataobject.ro.PersonAddRO;
import com.company.fastsbapi.dataobject.ro.PersonUpdateRO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
* Created by CodeGenerator on 2020/09/08.
*/
public interface PersonService {

    void addPerson(PersonAddRO personAddRO);

    void deletePerson(Integer id);

    void updatePerson(PersonUpdateRO personUpdateRO);

    Person findPerson(Integer id);

    Page<Person> findPersonPage(PageRequest pageRequest);

}